[#5356] Replace deprecated call

Issued introduced by 064fb125603dede6a85a2a0c5409a078c69a12b5
[#5356] Rename test case.

Css2Xpath is not longer tested by the file.
[#5356] Remove unnecessary/unused `use`s
[#5356] Improve docblocks
[#5356] Throws exception without save and throw again.
Merge pull request #5408 from Maks3w/hotfix/tests

Fixes for #5356
Merge branch 'hotfix/5408' into develop

Close #5408