d3d11/tests: Port test_device_removed_reason() from d3d10core.