add spell checking test script and fix spelling errors