Added tests for bad input in JSON provider.