Change exception object to AssertionError.