testing: add and run unit tests from cmake

also make travis run them