Fix error in test suite

Failed test wasn't being recorded if it failed by signalling an error