Helper to test WSGI applications