Add test case for deliver