add test for mapping outputs to inputs