Implement testnet specific rules.

This commit adds support for testnet specific rules when a new BlockChain
is created against testnet.