adding unit tests for the client side User model