bugfix boolean for test mode