added close delay to tests