solved the problem with testing by handling registry acquisition better(added a getter instead of a creator, which was creating problems).