Changing cdvtest format to use module exports
diff --git a/test/tests.js b/test/tests.js
index daf5ff7..f85e695 100644
--- a/test/tests.js
+++ b/test/tests.js
@@ -1,6 +1,4 @@
-// Eventually, require cdvtest plugin, for now its global
-
-registerAutoTests('org.apache.cordova.device-motion', function() {
+exports.defineAutoTests = function() {
   describe('Accelerometer (navigator.accelerometer)', function () {
     var fail = function(done) {
       expect(true).toBe(false);
@@ -153,4 +151,4 @@
       });
     });
   });
-});
+};