Added test classes to test writing of JSON Object on file