Add tests for map option

This tests the new `map` option added in #12.