tests: Port matrix suite to the boilerplate macros