Your test_normal function is missing

proc_mode = 0;

when you want to run it in the normal cycle.

Variables don't reset themselves, although this could be desired here. I'll probably implement autoresetting for proc_mode to prevent that other people make the same mistake.