add mapattribution parameter passing with tests