add more code
Merge pull request #1170 from smothiki/component-tests

Component tests