refactor a bit, add possibility to test the selection code
refactor a bit, add possibility to test the selection code

jsilhan/libsolv,JacksonIsaac/libsolv,jsilhan/libsolv,jsilhan/libsolv,JacksonIsaac/libsolv,JacksonIsaac/libsolv,JacksonIsaac/libsolv,jsilhan/libsolv,jsilhan/libsolv,jsilhan/libsolv,JacksonIsaac/libsolv