Adding test script for getAncestors API.
Removed extra test script.