[PATCH 2/2] d3d11/tests: Fix crashes with debug layer enabled.