add test of replace without dict