Add assertions for identifier filtering