Add pre-commit hook to test project before committing.