Add test case for component
Move package imports to root CMakeLists