Added tests for Component.