rank method added to test