changed tests to spock