and patch up tests that rely on a provider
Revert "Merge pull request #2505 from andymckay/revert"

This reverts commit 023094f3363e360fe5399ee1e667bb1a0a35e8c1, reversing
changes made to 4ef41eb1b7781179eca7805215cea97df7080243.
Merge pull request #2513 from andymckay/reference-by-default

and patch up tests that rely on a provider
note-type-specific commbadge emails (bug 1043541)