tests: use correct PID for main thread

Since PIDs are not beginning at 0 any more, this test was failing.