Added test cases for nil and vanilla json