added TestMode, see Issue #22