Added tests for User#login()