Fix and complete config test.
Correct MessagePack map size.
Add memory layout abstraction to simplify testing.