Ensure we can write provider data, and add API tests