fix tests for ie6+7: fix use of JSON object