Added json based unit test