test interrupts with c++11 lambda functions