Added tests for some exceptions, clean up formatting in http tests, added utf-8 encoding header to http tests file