added test for /sync flag