Codeanalysis groovy

Refactoring & Jacoco test with [Geb](http://www.gebish.org/) and [Spock](http://www.spockframework.org)