Refactor test to use DdlHelper.

Follow-Up to https://github.com/rails/rails/pull/14400

This ensures that all tables are removed after each test and thereby
allowing us to run the tests in a random order.
Merge pull request #14474 from tgxworld/table_cleanup_after_each_test

Refactor test to use DdlHelper.