Ensure that all models have a toJSON implementation

Fixes #248
We have a test that guards against creating a model without having a toJSON method and all models exposed by the providers are updated.