test, persist inherited class with different table name. Refs #14971.

This case prevents against regressions. The change was suggested in a recent
PR but the all our tests passed.