Fixed bug in CompositeLayer class and added unit test for it
Merge pull request #919 from bartvm/composite_fix

Fixed bug in CompositeLayer class and added unit test for it