added unit tests for the user model