Adds test for rank()