Added Euler unit tests, fixed one bug in Euler.