add makefile and test file