Moved calls to write to OData in spec_helper so that they are always mocked.