Added a test case for issue #25
Merge branch 'master' into issue-25
Fixed caption for the test.
Handle basic attributes before attaching the component to a layout. Fixes #25