Run testing code only with debug mode