Added unit tests for users