fix the tests on pypy, and also make json's error["message"] include the exception type.