add test case into test_device.c