Fixed some typos in the documentation and test files