Fixed some typos in docs and tests