Supreme Court rules on the tax implications arising on waiver of loans