Test pre-commit hook