refactored tests to use wsgiref test server instead of live web calls. Fixes #9.