added tests for debug mode