added to makefile so tmp file is always made for testing, fixed up test