The tests where not working.

This fixes the building failure on the tests.
I also added "exitEventLoop(true);" at the end of the tests.
I wonder however what is the purpose of that folder as they were obviously not run.
Shouldn't they be either moved to "examples", or added to travis ?