cleanup was not done as intended due to typo in variable name
fix shellcheck errors
fix search
depending on os / bash version / config, compgen results was not in the same order and so the CI was not stable, so a sort function was add for this purpose and could be override by the user if needed
add a beginning of CI tests to avoid regression ( need to add doc about them later and the purpose of TESTS_DEBUG , TESTS_PAUSE, TESTS_DELAY_KEYS env running them )