Added test for View::set_global