test function reply