test snippets for groovy
test the finally behaviour in function