unit tests for replace in...