Fix #299: the test is defining global variables