describe("VehicleSpeed", function(){
    var vehicle;
    var vehicleSpeed;

    beforeEach(function(done){
	vehicle = navigator.vehicle;

	vehicle.vehicleSpeed.get().then(function(vs) {
	    setTimeout(function(){
		vehicleSpeed = vs;
		done();
	    }, 10); 
	},function(error) {
	    setTimeout(function(){
		done();
	    }, 10); 
	});
    });
    
    it("vehicleSpeed.get()", function(done){
	// @todo value "100" is temporal one
	expect(vehicleSpeed.speed).toBe(100);
	done();
    });

});

@@ -68,16 +68,41 @@
 leSpeed;
+%0A    var vehicleSpeedSub;
 %0A%0A    be
@@ -509,12 +509,371 @@
    %7D);%0A%0A
+    it(%22vehicleSpeed.subscribe()%22, function(done)%7B%0A%09vehicleSpeedSub = vehicle.vehicleSpeed.subscribe(function(vehicleSpeed) %7B%0A%09    console.log(%22vehicle speed changed to: %22 + vehicleSpeed.speed);%0A%09    vehicle.vehicleSpeed.unsubscribe(vehicleSpeedSub);%0A%09%7D);%0A%0A%09expect(vehicleSpeedSub).not.toBe(0);%0A%09expect(vehicleSpeedSub).toHaveBeenCalled();%0A%0A%09done();%0A    %7D);%0A%0A
 %7D);%0A

add test for vehicleSpeed.subscribe