Add PHPUnit tests for ContainerThread