Fix rest.test_events. Convert to use SQLiteMemoryDbPool