Added fix for corner case where no tests were runnable but the other conditions did not catch it.