Fix InputOutputMap tests - not finished yet

Work in progress. Does not compile!!!