Added wc check to test script.
Fixed server file so now the output file is only off by two bytes.