Add unit test for register.