Unit test for users login