run tests in pre-commit hook.