unit tests ensure broken comparators don't put null to the start of the set and than an empty set is never sorted

Change-Id: I8fa2b4189f83e98f362ccdfecfd4dbfeb5d36d99
Signed-off-by: Egon Willighagen <egonw@users.sourceforge.net>