Fix errors in test case output categorization