Helper method for adding tooltips to buttons, labels and other rendered objects
added test for helper method add tooltip