Added unit test for object of replacement patterns