Not much way around this as it's using the current test doc to run the view code. Maybe this would be better in the flow tests rather than here.