[tests] test searchAndReplace()
[shared] fix searchAndReplace()
[tests] reenable all tests
Merge pull request #318 from cgzones/fix_searchAndReplace

fix searchAndReplace()