Added more tests to UserAPITest