adding delay to messaeg packet and tests