Revert "Revert "test ref_filter_order""

This reverts commit 343859cda729025d0da2c0bd8909c648fbd3dc37.