Updates with NULL selectors - version 2

As per the discussions in https://github.com/dbfit/dbfit/pull/305, this is a revised version of the changes, with the tests now refactored out into the CommonSuite.