router test code moved from AutobahnPython