Adding delay to tests