Generalized the ad-hoc reindex test of non-partial indexes with tablespace by moving it to the database stub and refactoring tests.