Fixing attribute name typo

Also adding a test case
Merge pull request #24 from hakamadare/typo_fix

Fixing attribute name typo