[PropertyAccess] Added test to verify #5775 is fixed

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #5775
| License       | MIT
| Doc PR        | 

Added regression test to verify #5775 has been fixed some time ago, so that it can be closed.
Is it possible to give better name that would describe purpose of the test?