Added tests for 'Sample.rank'