added hash test and modified Makefile