added test, add c++ library