Properly count test number on matrix jobs