Add option for mixing test stderr and stdout
Add bailed_reason to store the bailed out reason.