Added tests about getPolicy with devices