Lucas scan test

Fixed merge conflicts