I think you can't do `new AppWindow` with the mock outside of setup()/test() functions.