add component testing.
Merge pull request #30 from hansode/component-testing

add component testing.