add pre-commit
fix tests for v.0.8