test: don't relay on thrd_current() returning an int