Got the model unit test working. Fixed problems with the user model