Fixed unit tests. Made LayoutObject OM-aware.