Implemented custom function checker in getAscendant method + tests.
Documentation added and little improvements.
Little improvements in tests and code.
Tests: Refactoring.
Refactoring: Improved code readability.
Code refactoring: Minor improvements in tests, docs and code.
Changelog entry.
Merge branch 't/12279'