adding spock unit tests