Added ReplaceTest