fix SyntaxError on !(command)...
fix SyntaxError on !(command)
prefilter_line expects that trailing newlines will be trimmed, but
run_cell passed it lines with a trailing \n.
Single-line run_cell now uses prefilter_lines again, and appends newline explicitly.
Formerly failing test included.