map output + tests