test thread id to open hook