Fix the tests after algorithm adjustment in 6f208cb938
Merge pull request #3 from halorgium/fix-tests

Fix the tests after algorithm adjustment