Added JUnit tests for AbstractDevice