added more tests with partial nan's and duplicate values.  nan's will always be nan's so not sure if we would ever catch a bug if all nan's.