spock based unit test added