Added tests for component registration