blockchain: Add AssumeValid tests.
blockchain: Add AssumeValid tests.

This adds tests that validate that it is correctly determined whether or
not a node is an ancestor of an assumed valid node under a variety of
conditions.

decred/dcrd,decred/dcrd