added test file and script for search/replace function