Test for thread title function.