fix test cases and deps