Write tests for data-wrangling parts in the visualize mode
As spotted by @gaba in #40012 (closed), we don't have tests for the visualize mode. Let's work on tests for the data-wrangling parts that take analysis files as input and produce data frames as output.