Tests for device and orientation api