Added test for component factory registry