Fixed typo and a test