Add exam for ex::collect().