add test to prevent global variables per #33

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