test(tooltip): Test adding functions to scope