Add unit test for tooltip string creation