tests for IEnumerator