added testMode flag, put Danish char set command back in