Add tests for NamedBlock.