Added test for nested attributes
Changed require mocha to mocha/setup to remove deprecation warning
Removed comment