Don't require testing libraries when not testing

Place the `build-depends` portion of the dbmigrations-tests executable underneath a check for the `testing` flag, causing cabal to ignore those dependencies when it is `False`.