pre-commit hook to run tests