Unit tests for the new Registry class