the rake task `db:test:prepare` needs to load the configuration

Fixes #10660 

Without the configuration the task will not perform any work.

The problem was introduced with 76a8091 where the dependencies were refactored.