Improve test stability: waiting to finished ajax during import