Tests running dual with mocks or in integration mode