explain how to use the DatabaseTestCase and refactor to use the extra infos from composer.json