getGroup fixes for unit tests