L2SS-594: Use process=True for the DeviceTestContext to avoid crashes, and move test code into the Device to fix the test.
Closes L2SS-594