testing deliver method