tests for inbound_keys() and outbound_keys()