Add protection against empty test sets.