I don't understand why you've switched from to.equal to .eql in these presence checks. .to.equal seems to be stricter.