Adds two failing tests exhibiting collect/filter halt bug.

Also adds two passing tests exhibiting situations that are not affected
by the bug.