Added unit test for user component.