Extract with_example_table into helper method.

This setups the helper method which other tests can benefit from.