Fix iterator test. Thanks @codebox. Closes #107