fix find_all_tests and add functional tests

Those tests make use of subprocess to call to
python scripts with some specific environment 
variables set.