Testing utility function for rendering React Query hook - TanStack