Add domain information to routing table

Also fix hilariously broken test!