Updated CMakeLists.txt. Fixed broken build.
Added option to correctly parallel tests.