Make TestApp work with plain WSGI applications