Make sure we work on both simple and nested maps.
Add tests for nested maps.