Fix the test to not have to run the binary separately first to get the golden output, use the process STDOUT instead.

This helps this test be able to be run remotely.
Changed program to go along with the previous commit to allow this test to be run remotely via lldb-platform.
Don't repeat names in comments. NFC.