Added unit tests for User Model