test: Add tests for Win.Sync() and Win.Flush[_local[_all]]()