Added tests around scoping policies.