Unit tests for routing