Testing of discharge tubes