Fixing counting error on failed tests