Test map works with objects too