Trailing spaces removal.
Adding some assertions to make sure the tooltips are working.