Interesting suggestion. I was thinking of making the exist test hooks duplicate what the sandbox does a little more (i.e. actually load the app inside a separate JS context to which we add a dummy API).