Modified test cases. Added ownership registering for component attach