assert closure return value