Added test app for SQL queries with comparison on NULL. investigation for #2362.