Added waiting in test1