Test key/value sanitization