fixed getPartitioner impl, added unit test
merge