Fix broken test by converting QuerySet to list