Add synchronization logic for waiting after adding components 

in cms acceptance tests. 

@wedaly @polesye