collection: added TypeError on wrong testoutput
set: error on wrong output or height