Replaced toBeUndefined() with to.be.undefined