added Spock and principal tests