test debug mode