Split test_policy_2.cpp into multiple smaller tests. Fix use of long long so that code compiles with g++ -pedantic. Update docs to match. Fixes #1451.