wrote test using webtests.py