debug mode, and tests to prevent commit with debug mode