TST: Don't depend on OperationalError for exceptions in connecting to test database