fixed output and add working version of newstest