Massive improvements to group rule calculations with tests