Fix Eigen computation + add test.