Fix an issue with json dumping of TestResponse and builtin functions