Improve tests' Makefile

Useful for bash completion and avoid unnecessary rebuild
Add some ideas