Added user model unit tests