Making it so that we can join on documents supplied to the query function. Kinda kludgily named at this point :\
Tests for all the low hanging fruit until I work up the courage to mock out the rest of the process. Reminded of separation of concerns for some reason...