verifyGas function for the state tests