call to_hash on object that respond to to_hash + specs