Added unit tests for RegisterUserCommandHandler