add mapattribution parameter passing with tests

Fixes #39