wrote tests illustrating issue #8