Refactoring runtests module

This refactoring includes:
+ removing all unused imports,
+ removing branch parameter (to make script more general)
+ specify config_format in testsuite_params
+ changing collect_instances_params from procedure to function

@uvizhe, @kis8ya.