fixing invalid json and create provider test.