Added tests for invalid input for JSON parser