t6050-replace: add test to clean up all the replace refs