Add tests for remote.{src,dest}

Hey @jdepatis,

I finally came around to writing some tests for your PR. Could you quickly check that this covers your code sufficiently?