add test to prevent global variables per gh-33

don't know if it's still relevant, but figured i'd do it anyway