fix #1 Closes connection on bad request

Also updating to testing, now can easily check the server for expected
responses in setup.py