finished simulation and added test for EigenDecomposition