fixing a typo and adding a test to see if nested attributes are initialised
Merge pull request #24 from goncalvesjoao/master

fixing a typo and adding a test to see if nested attributes are initiali...