Enabled sync tests and fixed them

The Sync tests were disabled. I enabled them and fixed them. Also a small refactor of some of the other tests to improve isolation (cleaning s3 directory after each test)