add rudimentary tests for using groovy to control replacement

Notes - groovy-all-2-2-1.jar needs to be copied to phpstorm lib directory