Common functions tests and Memory Debug with Valgrind