synced_folders/rsync: unit tests for the callback, fix bug