In my test I made not only one but more and more tests on a particula function, so Unit Test is a part of the possibilities. I select specific case for example in a division i use 0 for both operand, single operand etc, limit of the specific numerical interval, but also normal situation. All test are predictable, so when i change the code the execution of case assure the stability of change made.
In your case i think you are doing a single unit testing.
I accept the wikipedia definition of unit testing and functional testing.
Functional testing is wide and is program oriented. Unit testing is oriented to the minimal part of testable code and should be as much generic as possible.
In your specific case "In my particular system i am learning with, i need to test for particular nodes in a xml tree - represented as an object" if the result of function is the object you should have a well known input string, file , object static defined, and an assertion that the output for specific input is an object that has the particular node, or better extract the return object, extract the particular node and assert that the particular node should be equal to a particular value /object
I hope to be useful