add testing for querybuilder relations