#40 Sync policy algorithm
#40 Sync policy algorithm - unit tests