fix unit tests to use repository and api objects
unit testing directly against the api object prevents testing delegation
Merge pull request #68 from barmintor/rubydora-66

fix unit tests to use repository and api objects