tests: Use NAN and INFINITY of C99 and C++11

Effectively reverts commit f6f5d9bb4cc05fb9544ec92e0c3e6a44013cbc1f.
1 file changed