Add test case

Add some test case in push cordova project using nodeunit.
Why grunt.registerTask() x2? Will this duplicate with above line 140?