added tests for xIterate