Minor cleanup for tests

Used more specific imports to reduce the noisiness of call the `os.path.«whatever»()` calls