Fixed ellipsoid and added 100% test coverage