adding test for ChannelPool.map
Adding `npm test` support