Prof. mod.: output summary to string instead of stream

Update test accordingly