add tests for isSameNodeAs