Waiting for view in test