added unit test for putAll