fix for GRAILS-10596 "Spock tests always fail (404/302)"