Writing tests using Spock