Implement provider insert and test it.