Extract with_example_table into helper method.

This setups the helper method which other tests can benefit from.
Merge pull request #14400 from tgxworld/ensure_tables_are_dropped_after_test

Drop custom tables after each test.