added wait for mac test