Updates groovy for enabling usage in IDE
Add simple merge pattern test case