add test in makefile
auto run test in travis ci