Added test for User.java