d3d8: Use a proper window class for the device test.