Add test file and modify makefile