You will also have to measure the air temperature during the test and allow enough time for the air temperature to restabilize back to the original tank temperature after the air injections this procedure should work but its accuracy is fully dependent upon the accuracy of your tank measurement and the pressure gauge installed.
One issue that srikes me regarding the test versus the application of the unit is that, assuming this unit is going to be utilized for gas operation then the pressures in the cylinder at the open and closed positions will not be same due to the change in cylinder loading to extend the unit under load, so your test will not reflect the actual gas volume consumption between the open and closed positions in the cylinder application(s).