Fixed bug in tests validating sign in