typo fixed and a test added