Test helper remote_file_equals()

It executes a diff between a local and a remote file. Makes a couple of
tests more readable.