Fix test:prepare launch to depend on the ActiveRecord 'defined?'