Added functionality to run component test