added test for replacement policy