Added tests to test device manager