refactored makefile
added tests target to makefile