Improve tests, update gitignore

Script does not work with dash, print some progress,
run tests in subdir: allows several users to run tests simultaneously,
remove temporary files, add more tests, do not use system copy of cli.