Add tests for #1029

The mbngs library does not like to be called with whitespace-only criteria.
Fix #1029: whitespace-only searches