updating test code for view