Fixed gas check for vm test