Add test case for rank filter fix