Added unit test for devices