update Makefile for testing function