Final refactor
Make rsync tests more readable
Abstract rsync assertions to a function in tests