Testing threads with pit sync