Add tests for view_definition.