Fix tests related to tooltip