## Bug description
Breakdown seems to not working properly when the test filter switch is toggled on.



## Expected behavior

Expect breakdown by realm to work since the filter @ event level works. Also it seems to work if test users are not excluded.


## How to reproduce

1. Go to this [chart](https://app.posthog.com/insights?insight=TRENDS&display=ActionsLineGraph&actions=%5B%7B%22id%22%3A4912%2C%22name%22%3A%22Discovered%20Learning%22%2C%22type%22%3A%22actions%22%2C%22order%22%3A0%2C%22math%22%3A%22dau%22%7D%5D&events=%5B%5D&filter_test_accounts=true&new_entity=%5B%5D&breakdown=false&breakdown_type&date_from=-30d&interval=week&properties=%5B%7B%22key%22%3A%22realm%22%2C%22value%22%3A%5B%22cloud%22%2C%22hosted%22%5D%2C%22operator%22%3A%22exact%22%2C%22type%22%3A%22person%22%7D%5D) – observe the filter by realm on the events.

2. Go to the same chart, with a [breakdown instead](https://app.posthog.com/insights?insight=TRENDS&display=ActionsLineGraph&actions=%5B%7B%22id%22%3A4912%2C%22name%22%3A%22Discovered%20Learning%22%2C%22type%22%3A%22actions%22%2C%22order%22%3A0%2C%22math%22%3A%22dau%22%7D%5D&events=%5B%5D&filter_test_accounts=true&new_entity=%5B%5D&breakdown=realm&breakdown_type=person&date_from=-30d&interval=week&properties=%5B%5D) -- Observe no data

3. [Disable the test filter, apply the breakdown](https://app.posthog.com/insights?insight=TRENDS&display=ActionsLineGraph&actions=%5B%7B%22id%22%3A4912%2C%22name%22%3A%22Discovered%20Learning%22%2C%22type%22%3A%22actions%22%2C%22order%22%3A0%2C%22math%22%3A%22dau%22%7D%5D&events=%5B%5D&filter_test_accounts=false&new_entity=%5B%5D&breakdown=realm&breakdown_type=person&date_from=-30d&interval=week&properties=%5B%5D) - data seen 
## Environment

- [ ] PostHog Cloud
- [ ] self-hosted PostHog, version/commit: _please provide_

## Additional context



#### *Thank you* for your bug report – we love squashing them!

ee/clickhouse/models/action.py
params = {"{}_{}".format(prepend, index): step.event}
    conditions = []
    if step.url:
        if step.url_matching == ActionStep.EXACT:
            conditions.append(
                "JSONExtractString(properties, '$current_url') = %({}_prop_val_{})s".format(prepend, index)
            )
            params.update({"{}_prop_val_{}".format(prepend, index): step.url})
        elif step.url_matching == ActionStep.REGEX:
            conditions.append(
                "match(JSONExtractString(properties, '$current_url'), %({}_prop_val_{})s)".format(prepend, index)
            )
            params.update({"{}_prop_val_{}".format(prepend, index): step.url})
        else:
            conditions.append(
                "JSONExtractString(properties, '$current_url') LIKE %({}_prop_val_{})s".format(prepend, index)
            )
            params.update({"{}_prop_val_{}".format(prepend, index): "%" + step.url + "%"})
    conditions.append("event = %({}_{})s".format(prepend, index))
    return conditions, params
def format_entity_filter(entity: Entity, prepend: str = "action", filter_by_team=True) -> Tuple[str, Dict]: