fix integration test to respect the new error code