* call hook before cdp changed * test that risky cdps accrue rewards accurately * fix typos * clarify test comments