Test for policy validation