added assertion failure for tests that run in record mode