Add tests for MarshallAndSend function.