Implemented the test component functionality, still didn't get to test it. Changed componentBox class to work with every componentType without separate classes.