core/txdb: refactor TestInsertBlock
core/txdb: refactor TestInsertBlock

Refactor TestInsertBlock to use GetBlock instead of using its own
helper function to retrieve the block by its hash.

Closes #372

chain/chain,chain/chain,chain/chain,chain/chain,chain/chain,chain/chain