Your code is correctly executed because this is how ob_get_clean works:
ob_get_clean — Get current buffer contents and delete current output buffer
Returns the contents of the output buffer and end output buffering. If output buffering isn't active then FALSE is returned.
Use ob_get_contents();
ob_start();
include('test.php');
$content = ob_get_contents();
ob_end_clean();
echo("Included{".$content."}");
Update:
<?php
ob_start();
?>
<h1>Welcome</h1>
<?php
include('contentbox1.php');
include('contentbox2.php');
include('contentbox3.php');
?>
<b>Bye</b>
<?php
$content = ob_get_contents();
ob_end_clean();
echo("Included{".$content."}");
?>