added some fixes to test_web.py missed in previous commit