Updated to use error.
Compare tests use bool return value.