Tweaks to test case
period = 0: no periodic printing