add more tests, fix a bug in npdist.__setitem__