Adding tests for onLocation, onSegment and onVehicle