Added spock unit test for Pilot