I needed to assign id's in testruns, like the category_id... which isn't accessible otherwise.