Added test that ensures that Resource instances can be used as scope