Registration unit tests