An automated test system for measuring x-ray transmission through glass polycapillaries