fix spelling
add tests