Fixing tests and all the test failures because providers didn't have toJSON method specified
on their model types.1