Adding tests to user model

Wanting to increase the test coverage in the model