fix spock test to support test-app