visualizer now implements runnable. test class simplified.