MDLSITE-2712 allow checks against integration

I remember we discussed improving it somewhat, but I can't remember what it was we wanted to do.. so I re-examined the change, added a few comments which were missing and now sending for review