Update Rakefile with task to capture test output