don't call commit() in test mode