Refactor app view test infrastructure

There's a bunch of variance and duplication is both view and app worker tests. We need to clean up and standardise this to make tests more readable and more maintainable. In the interests of not updating the whole world, this issue only touches the view tests.