Better Unit Test for code Replace