added __str__() + tests for it to ComponentAttribute class