message: fixed a bug where the test log wasn't checked before closing.
diff: @@ -57,6 +57,7 @@ class IntegrationTestAPI:
  To be called once at the end of the API's use. Closes the test log and clears histories.
  """
  self.clear_histories()
  + if self.logger is not None:
  self.logger.close_log()
  self.logger = None
  