Unit test for the Composite structural design pattern.