Improve test stability: waiting to finished ajax and pending timeout during import