added unit tests for successful login