updateded db:get-tests-for-run method with defstruct