Remove unused function
Fix test for commit existence