add test code
update Makefile