Fixed tests for lagrange

Accidently ran test suite on the wrong branch before committing.
Fixed a couple errors, and added a simplify step to one of the
tests. Looks like this method of solving may result in a less
simplified expression depending on the input.