added motor tests to cpp test program