test fix - set globals in main setup function rather than ad hoc