Fixed typo. Added a test example.