fix groovyReplace method, add echo method for diagnostics
fix valExtractor for first result-set column
fix query param passing and result-fetching
use the fixed result-fetching
fix the failing test