Refactor fetching records in queue controller
Add trivial spec. There is not much to test anyway