test_rank_filter.cxx: Added tests for the rank_filter.