Fixed test in mechanics.

The test was written to check eigenvalues, which return a dictionary. These
eigenvalues are (all) supposed to be 0. The issue was that the 0 in the test
wasn't comparing to a SymPy 0 - fixed by comparing to S(0).