This test confirms that the number of elements having Shadow in a shadow subtree is correctly counted. See Bug 100922 also.