Adds pre-commit hook to start tests