I'd add few more tests;

$bar = array("foo" => "bar");
$hash = $bar;

/* $hash not initialized at all */

$bar = "some value";
$hash =& $bar;