add overrideObject to core. \n\n add mocha tests