tweak selector test to check uriSelector
add findByExtension method in groovyEnvironment