Added an error code for assertion failure in tests.