I tried, but I couldn't find a sane way.  This is the same pattern used in other test code so we should probably find a better way and implement it throughout.