tests for conditional routing