Tests: Added tests for getElement method.
Preventing modify passed argument by reference in getter.
Changelog entry.
Merge branch 't/12148' into major