Better error code test