Unit tests for retrievers

https://www.pivotaltracker.com/story/show/62262512