Test to optimize remplace_view method.