[tests] removed the modification of os.path