added failing test case for prepare_app

BUILD now only happens once, but prepare_app is still called once per request instead of once per instance

I've adapted your test case to illustrate the problem.

I did not try to find a fix for now, but if you don't have time I can take a look at it...

Greetings,
domm