Added a test

- Need to make it run with more than one matching item point to the same user, because that is the behaviour we are targeting.
- Added "make spec" command: Takes care of test-db preparation.