Fixed to.have.property expectation behavior