Use export_dir variable in unit test