Implement test cases in DevicesTest.