Improve build Makefile.
Improve tests procedure.