Fix oo.Factory create and tests