Unit tests for registry service factory