Toolkit for multi-threaded testing