Closes #1916. Adding tests for the vislib dispatch class. Tests are however incomplete until a way can be found to simulate click events in the UI.