A T(1) theorem for fractional Sobolev spaces on domains