added spock testing