updated to make tests run print logs one after another