Tests device motion events