Add more selection unit tests

Add tests for syntax like
  res_com x < 5
  res_com distance from ...  < 5
as these were not covered well with earlier tests.  Subsequent changes
will refactor the code responsible for evaluating these to allow syntax
like "z of com of ...".

Change-Id: I63b60cc2958fcf919a82b809f60465b8444904d2