Added test for parseJSON