testing rank_reactions function