tests: improved debug mode test