tests for container and dispatcher