Add tests.
Fix bug in FindOpenSim.cmake.