Fixed the group for Ds (fixes #1282)

Change-Id: I8fdbb50f171697371090bc8c4615a1af4aa6d8e3
Signed-off-by: John May <john.wilkinsonmay@gmail.com>
Basic unit test for bug 1305: null should not match AnyOrderQueryBond

Change-Id: Ia5f6b0e297d6ba571af690b534dc5fb3f2d1a5c0
Signed-off-by: John May <john.wilkinsonmay@gmail.com>
Added a positive unit test too

Change-Id: Ica5ed8c3f3ab944da83e3c3bdfbd05fcc13e2826
Signed-off-by: John May <john.wilkinsonmay@gmail.com>
Any bond order is fine, but the IBond must exist (fixes #1305)

Change-Id: Ida9971b5326c4e33e2c1513419b7ad8cb6ac9861
Signed-off-by: John May <john.wilkinsonmay@gmail.com>