Unit tests: changing the mode with runkit causes issues with static vars
Merge pull request #443 from terrafrost/runkit-fix

Unit tests: changing the mode with runkit causes issues with static vars

* terrafrost/runkit-fix:
  Unit tests: changing the mode with runkit causes issues with static vars