test for custom rank function