Implement some unit tests for configuration class.
Fix a big logic hole in Block.CountBlock where it was counting the occurrences of the block name in the keys field, instead of the values field.