Add test case for `base_dir()` when psgi file.