Ensure expectation checked before test completion