Tests for Device class