Adding tests for the layer group helper
Merge branch 'nested_groups' of git://github.com/aaime/geoserver into GEOS-5548-nested-groups-3
GEOS-5548 - added loop check