send.c: add more unit tests