In all actions for the recovery of lands or other property sold for taxes, the complainant must state and set forth specially in the complaint the tax that is justly due, with penalties, interest and costs, that the taxes for that and previous years have been paid; and when the action is against the person or corporation in possession thereof that all taxes, penalties, interest and costs paid by the purchaser at tax-sale, the purchaser's assignees or grantees have been fully paid or tendered, and payment refused.