separate visualization and test