Add get_layergroup(s) method and tests