Cleaning up code for asserts that should fail.