[5.0] Add tests for single parameter routing

Tests for #6132