In an action of ejectment, at any time before the trial, the defendant may give notice that if the verdict of the jury is in favor of the plaintiff's title the defendant will claim the benefit of permanent improvements that may have been placed on the property by the defendant or those under whom he claims, and offer evidence at the trial tending to show that he or those under whom he claims had peaceably entered into possession of the premises in controversy under a title which he or they had reason to believe and did believe to be good, and had erected valuable and permanent improvements on the property, which were begun in good faith before the commencement of the action. The court shall then direct the jury, in case they find in favor of the plaintiff's title and also find that the permanent improvements were made by the defendant, or those under whom he claims, under the circumstances described in this section, to assess the:
D.C. Code § 16-1116