added aftergroup as a test