It might be better to use a teardown function for cleaning up the tooltip after the test is completed.