Added new tests.

Due to support zts broke the ability to run tests without installation - fixed.
in the script `tests/test.sh` added option `-r` (the full list of options, see `./test.sh -h`) - intended for removal of temporary files that appear after the failed tests.
Other minor changes.