test Distribution.map