Base utilties for mozilla test harnesses