Fix testing of debug flags.