Use $expected value in assertion in get title test