Fix engine CMakeLists.txt for Mac
Add try-catch around task execution
Add simple test for base::thread

Fixes #19
Fix tests of configuration_element.