rewrite test

This fixes a problem with the JDK8 + Groovy 2.3 build