[PATCH 2/4] d3d10core/tests: Add test for state refcounting.