Add mixin for Rank tests