Migrate the test database before running tests in CI

This issue stems from the deprecation of the db:test:prepare task.