Rewrote core tests.  Added iterable thread functions.