Added test for InputDevice