added testing framework using stdout diffs