Add unit tests for Registration.