add test cases, fix dropWhile API issue