TST helper function