Added more tests for the device API