§ 531. Adverse possession, how affected by relation of landlord and tenant. Where the relation of landlord and tenant has existed, the possession of the tenant is deemed the possession of the landlord until the expiration of ten years after the termination of the tenancy; or, where there has been no written lease, until the expiration of ten years after the last payment of rent; notwithstanding that the tenant has acquired another title or has claimed to hold adversely to his landlord. But this presumption shall cease after the periods prescribed in this section and such tenant may then commence to hold adversely to his landlord.