update tests for view attribute