add SyncedFileTest.js I forgot in previous commit.
refactoring.