fixed Makefile and test case