Add various tests for recently fixed issues
For all issues fixed during system test of the sync-release (#18910 (moved)):
- verify that there are tests checking the fixed functionality (where it makes sense)
- add tests to catch similar issues with junit test instead of system testing (where feasible)
At least for comments 82, 95, 98 in #18910 (moved).