Focus can shift with apertures, focal length, and distances.
Aperture: As mentioned above, this is focus shift, where focus changes when lens is stepped down near its largest aperture size. This is known issue affecting select lenses, particular larger aperture lenses. This is part of the lens design and cannot be corrected. Have not heard 85mm 1.8 having this issue.
Focal length: Can be calibrated. Obviously not an issue with fix focal length 85mm lens.
Distance: Definitely can be a problem. Can be calibrated. I suspect OP's issue is possibly this problem. So make sure you do your test with various aperture without changing distance. I.e. use a tripod.
If your lens is truly exhibit different focus at different distances, you have to contact Canon. They should be able to calibrate the lens for you. But you really don't need to do this, unless you are sure you have a problem and that it is significant enough to affect your photos.
To proof that focus can change with focal length and distance, just look at Sigma. Some Sigma lenses are notorious for having focus shifting with focal length and distance. I should say they are notorious for not being calibrated straight from the factory. Newer Sigma lenses can be calibrated by user using a software (Sigma Optimization Pro Software and USB dock).
Here is the link to Sigma Optimization Pro Software:
DP Review Link
Here is the screengrab showing the MA calibration for focal length and distance:
Screen Grab
I personally have not had any issue with 2 Canon lenses I own. I had problem with Sigma 50mm 1.4 (older version EX DG HSM, not the new ART version); brand new straight from factory. This was the MA results at varying distances, all using same f/1.4 aperture:
- 6 ft: +16
- 10 ft: +1
- 15 ft: -4
- 30 ft: -6
Very significant shift. Sent it into Sigma and they calibrated the lens. It was perfect after that.