Added tests for login