Task 54279: Backport device-motion new-style tests

Checked out tests/ at 6ec6016 (initial porting of tests) and backported to
3.6.1
Merge pull request #1 from stacic/backportTests

Task 54279: Backport device-motion new-style tests