fixed makefile to run test and fixed error in makefile