improve ContainerBehavior tests and add some documentation