add the automatic way to generate test matrix