Added test cases for replace module

Adhering to test conventions as best I can tell