adding test for REGISTRY-2181

 adding test for REGISTRY-2181