A recent case provides a lesson to landlords about the importance of complying with improvement notices