Added tests about setPolicy with devices