Added check for __FILE__ to keep Visualizer from running during unit tests