Added more tests for JSON lib
fix for defaulting issue