Added more tests to map.test.js.
Re-implemented to allow pluck-style map.