fixed test. added wait for processing unit instance.