add tests for Kendall, and fix one bug