Add tests for registry.