write a test for view helper