Reduce `case class test(...` to `def testRule` of reusable `TestParser`