add makefile and test