Monkey patch for invenio test to avoid a real connection to the database