add tests which check that a routing callback receives encoded values which it can decode manually