savepoint only when testing