Added test case for Tooltips, and fixed some issues