fix for issue #1

fixes the typo and adds a test case...