add registry unit test