grouped <num> tests
tweaked scanning grammar