Fix NAN tests on windows

DIFFBASE=#33