fixed test about replace error