Added tests for Eigen decomposition and fixed precision in decomposition algorithm