Added unit test for JSON stringify and parse API