completed unittest for User class