change test_device into a unit test