Fix a bug in the OData applicationContext-test