feature: map function
unit tests for new feature: map