TST: sql add tests for NaN handling
Merge pull request #7100 from jorisvandenbossche/sql-tests

TST: sql add more tests (NaN handling, ..)