[298535] [xpath2] adding test cases for the bug, https://bugs.eclipse.org/bugs/show_bug.cgi?id=298535