Add unit test for JSON conversion
Get rid of unused instance variable