fix test cases and fix bugs about compress-index
fix deps