```xml <root> <test foo="bar">First</test> <test foo="bar">Second</test> <test foo="xyz">Third</test> </root> ``` ### Test: - [x] [//test[@foo='bar'])/[last()]` This from https://github.com/antchfx/xpath/issues/76 expected: ```xml <test foo="bar">Second</test> ``` actually: not found - [x] `//test[@foo='bar'][last()]` expected ```xml <test foo="bar">Second</test> ``` actually: not found