clean up tests and timing in lthread