Fleshed out test cases for device api