fixes #327
Add a test case for indexing columns containing NaN

See isssue #327