Added some extra commit e2e tests
Avoid computing the commit_file twice