Add test for extra file and commit hook handling