Add tests for Maps, serialize domain data and keypair data