Small fix to writejson test.