Added CTest style tests
Make tests optional
Added all tests to cmake file
Make default build type to be Release