Diagnostics on M7 motion coprocessor

Yes - you would use the health app and place steps and distance walked/run into your dashboard and then take the phone out for a walk or jog.

If no data is logged, you can conclude that the processor is likely faulty. You could confirm it by backing up the device and restoring a clean OS and repeating the step test.