Fix function convertValvePosToFlow
Fix bug with gas number
add new function - setGasNumber.
add test case for it.