Add tests for relative file paths and cleanups