Added tests for CompositeState

Signed-off-by: makulik <g-makulik@t-online.de>