[test/spec] Assert number of C++ test failures