Volkswagen warned over emissions test cheating years ago