I am not sure what == does. Maybe 

assert_true(raw is reref)

is what you want here.