testing rooted tree isomorphism strings