Ellipsoid: use matrix representation and avoid equation representation

Also remove tests whch assumed correct equation variables