Add another test for the c++ event loop