Added more tests for replaceTerm option and checking if renamed files are being created