Failing test passes now; added locking mechanism to update collection