Test setTitle function