Added user model and unit tests