fixed broken test for sortrules