Move test for empty keygroup to address issue in #4