Fixed order in db:compare-itempaths call in calc-prereqs, added some simple tests for get-prereqs