refactored the script that runs tests locally for different ops modules