test rollback scan.cpp