add test.cc and makefile