Drupal testing framework (PHPUnit) provide 3 types of tests: UnitTest, KernelTest, FunctionalTest (JSFunctionalTest) UnitTest : Very fast but Unit Only, without drupal. KernelTest : Is a service test with drupal but without interfaces ans theming.
In Drupal 10, you can customize the file upload path using tokens. Tokens in Drupal are placeholders that get replaced with dynamic values when the content is being displayed or when files are uploaded.