Refactor DatabaseResourseTests