added test to check that the slider does not have duplicate events after calling 'refresh'