Added user model and its associated tests.