Add trailing slash `/` to `rsync` dst directory

This is to make sure no additional level directory
with source name is created (see `man rsync`).
Add upload function testing.