Add test for assign with sort filter