Add test for User model
[Closes #7]