fixed wsgi.html test and minor fixes