Added more tests for routing. Fixed domain group bug.