Finalize heredoc tests