issue #7: Fix getByDBRef argument check

- fix argument check (collections must equal not the reverse)
- fix repository test not to report false negatives