Move output_to_stream matchers to a more readable api