Fix cleaning of tmp file created during unit tests