Add a sendeof method and tests