Tests: Fix GroovyScriptTests to not depend on the way documents are routed to shards.