Finished unit tests and added a few utility methods for iterators and iterables