Merge "Add unit test for dynamic policy."