Added tests to deal with the downsync
Implemented downsync functinoality