Add test for @Replace.
Split up stdout/err in stage1.
Add test with two test methods.