Mass modification of the testing scripts

For cleanup purposes and because of the new qemu system, the scripts
also had to be modified accordingly.

Signed-off-by: Alin Dobre <alinmd@gmail.com>