Fixed typo and add test

Fixed an easy spelling mistake.