move make test to Makefile
halt when tests fail