fixed upload impossible directly after sync
updated tests
built tools