updated synch code for variableProvider collection, updated test