Testing eigendecomposition function