write test for user sign in