count nontrivial cases in testing