Test pre-commit replacing hook