Bug 831404 - Add logging to test_policy.js. r=trivial,test-only