rhom_object_spec: make metadata test optional