Yes - the two last tests didnt make any sence. Ive updated the testcase to show that if layer is only set (and not layers) then it will change type from OpenLayers.Layer.Vector to OpenLayers.Layer.Vector.RootContainer when adding one more layer.