Lower the number of times constant() gets called on branches and leaves when a branch gets modified by caching its result.
Rewrote the current unit test functions to ensure all variations of policy get tested for every test function.