Check if tests exist before iterating