add test and index action for groups