Add Spock unit tests