Remove obsolete thread test script.
Fix memory leaks caused by using obj.Remove() instead of obj.Destroy().
Use uint64 instead of uint64_t.