Tests for nested data and simple data