test_web.py: improve coverage of web.py