Bash tests cleanups