Add unit tests to registration.