Implement and test putAll