Fix test simple_events_test in case of uninitialized database.