fix: horrible memory leak; added: test automation