Test rewrite for Object constructor