basic queryStudiesWithDetails + test setup