Adding unit test. Updating travis/cmake.