Use closures to bucket test state instead of explicit namespace objects.