2.8 backports

This pull request contains the element position fix and change of the test suite like in the pull request for 2.7-stable and 2.9-stable.

I also raised the version to 2.8.2 within this pull request.