Test scripts: refactoring

Moved variables defining to common file.