Test code using reflection to connect components