Set CMake build type to debug for travis
Add check target, move all testing into debug mode