Fixed up replace tests.