Fixed rank(v,s) unit test warning of implicit convertion from double to int.