testGenerateEMatrix working, I had to make sure I compared the output to a np.matrix