Add tests for remove_delayed_selection with class filter