login test for scala