Test `contains` for `output`.

Then just exit.