fixing one problem with tests script and wait_for_master