Better handling of junit's output in maven syntax

Also added return_this snippet.