Commit transaction in tests