Fix undefine :object_id warning

Fixed the warning for undefining object_id. Also fixed the specs since they didn't seem to pass.