Add a test for requesthandler.py