More unit testing for user component.