Coding User and unittest for user.