tests and implementation for friendly forwarding