test pre-commit hook