improve gson testcode a little.