fixed server side implementation and test cases of collection updates