use client test helper rather than setting on window