in mainfortest add some codes to reverse commits. oldest commit at the
start of list