If a policy has no "versions" then use its last edited date

This commit also fixes tests.