more tests passage and minor fix in wsgi content