fixed bugs in test code
added pluck & sort test case